home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG Revelations
/
BMUG Revelations.toast
/
Programming
/
Programming Languages
/
Yerk 3.64
/
Supplement
/
my stuff
/
arcsin
next >
Wrap
Text File
|
1990-12-31
|
283b
|
14 lines
\ rfl - useful definitions of arcSin and arcCos
: arcsin { %x -- f }
%x fabs .3 f>=
IF %x %x 1. f+ 1. %x f- f* sqrt f/ arctan
ELSE %x fabs f0>
IF %x 1. %x %x f* f- sqrt f/ arctan
ELSE 0.
THEN
THEN ;
: arccos { %x -- f }
1. %x f- 1. %x f+ f/ sqrt arctan 2. f* ;